-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added writing XMP bytes to JPEG #8286
Conversation
Thanks! |
src/PIL/JpegImagePlugin.py
Outdated
xmp = info.get("xmp") | ||
if xmp: | ||
size = o16(31 + len(xmp)) | ||
overhead_len = 29 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment that this is len('http://ns.adobe.com/xap/1.0/'+ b"\0")
? Otherwise a reader not famliar with the matter might come to the conclusion that this is just a(nother) magic number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I've added a comment.
Resolves #8283, allowing XMP data to be saved to JPEG files, either by
or